#include "freebsd_repository_path.h"

static int _pkg_repository_path_open(struct pkg_repository *, const char *,
        u_int);

static int
_pkg_repository_path_open(struct pkg_repository *rp, const char *path, 
        u_int flags)
{
        return (PKG_OK);
}

FILE *
_pkg_repository_path_fetch_pkg(struct pkg_repository *rp, const char *name, 
        char **fname, size_t *size, u_int flags)
{
        struct url st;
        FILE *fp;
        
        fp = fetchXGetURL(pkg, &st, NULL);
        if (fp == NULL) {
                return (NULL);
        }

        *fname = strdup(st.doc);
        *size = st.size;

        return (fp);
}
